package st.business.tepth.business.businfo;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.BusDriverInfoBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-02-27 10:33
 */

public interface BusInfoContract {
    interface View extends BaseView {
        void showData(BusDriverInfoBean busDriverInfoBean);

        void showError(String msg);
    }

    interface Model extends BaseModel {
        Disposable getBusInfo(String token, int repairId,
                              OnDataConvertListener<BusDriverInfoBean> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getBusInfo(String token, int repairId);
    }
}
